Error 406 and other stuff?

Category: Geeks r Us

Post 1 by Albanac (I'm going for the prolific poster awards!) on Wednesday, 07-Nov-2007 8:42:24

Hi guys,
I'm trying to create a members only section of my site, for various reasons. Ths is using a mysql database, and php 4.4. I'm having all sorts of problems with it, the very latest of which is this error:
406 Not Acceptable

Not Acceptable
An appropriate representation of the requested resource /members/join.php could not be found on this server.

This happens, when I try to join, as can be seen there, or when i try to log in, where the file being represented is login.php of course.
My question then is, is there anywhere I can learn how to create a system whereby people can login, to a members only section and stay logged in until that particular browser session ends? What I'm trying to do is this. Get the user to log in, and then register a session id for them. Hold this data, along with their username and pw in an array, called $user_row. Then, when they navigate to a page which is members only, it's asimple matter, or should be, of checking to see if the user data held in the array, matches the user data in the database... I say should be because this doesn't work. Thanks in advance for any help with this.